import { defHttp } from '@/utils/http/axios'

enum Api {
  DEVICE_CONSUMPTION_COMPARE_TABLE_LIST = '/energy/efficiency/getDeviceTataType',
  DEVICE_CONSUMPTION_COMPARE_CHART_LIST = '/energy/efficiency/deviceCompare',
}

export const getTableList = (params) =>
  defHttp.get({ url: Api.DEVICE_CONSUMPTION_COMPARE_TABLE_LIST, params })
export const getCompareChartData = (params) =>
  defHttp.post({ url: Api.DEVICE_CONSUMPTION_COMPARE_CHART_LIST, params })
